import requestService from "../service/request";

const Api = {
  list: "/app/mango/open/movie/list",
  search: "/app/mango/open/movie/search",
  detail: "/app/mango/open/movie/detail",
};

//热映电影&待上映电影
//type 0：热映 1：待上映
export function list(data) {
  return requestService(Api.list, {
    type: "get",
    data,
  });
}

//搜索影片或影院
export function search(data) {
  return requestService(Api.search, {
    type: "get",
    data,
  });
}

//影片信息&某城市下的影片排期
export function detail(data) {
  return requestService(Api.detail, {
    type: "get",
    data,
  });
}
